home *** CD-ROM | disk | FTP | other *** search
Text File | 1991-06-08 | 2.6 KB | 64 lines | [TEXT/MPS ] |
- Gawk for the Mac (MPW)
-
- This file documents the changes made to Gawk for the implementation
- as a Macintosh Programmer's Workshop tool. For general information,
- read the README and COPYING files.
-
- Installing
-
- - Put the file "Gawk" into your MPW tools folder.
- - Append the contents of the file "Gawk.Help" to your "MPW.Help" file
- - Specifiy an appropriate AWKPATH, if necessary.
-
- Modifying the source
-
- To compile the source, you need MPW 3.0 or later and MPW C 3.0 or later.
- If you want to make changes to "awk.y", you also need bison or something
- equivalent.
-
- User visible changes
-
- - Case insensitive comparisons work according to the Mac (8-bit) character
- set, i.e. "ä" will match "Ä". (Well, what do you expect from a Swiss :-)
- - The -m option has been added which tries to make regular expressions
- work the MPW way.
- - Lines are, of course, separated by CR and not by LF.
- - Error messages for program files and data files come in an MPW executable
- format. If you select an error message and execute it, the line where
- the error occurred should pop up. This doesn't work for programs given
- on the command line and for data given as standard input.
- - A commando interface is provided. If you execute "Gawk…" or "Commando Gawk",
- a dialog will let you specify all command line options.
- - Because of the commando interface, the restriction that options appear
- before input files has been dropped, which is also more consistent with
- MPW behavior.
- - A spinning cursor is shown, allowing MPW to run in the background while
- gawk is running.
-
- Limitations
-
- - MPW style patterns are a subset of what the MPW shell supports. The
- missing features are: variable substitutions like {XY}, repetition
- specifications like /[0-9]«5,8»/ and quoting with " or '.
- - Pipelines and the system() call are not supported (maybe in System 7,
- one day they will be :-).
- - The code has become quite MPW tool specific. All changes to the code
- are bracketed by #ifdef/#ifndef macintosh directives. The folder unix.d
- contains several files that are not necessary or not supported on the
- Mac. On a UNIX system, move them to the "src" Folder. If you want to use
- gawk as a standalone Mac application, you will want to first check out
- the Think C port of gawk done by Tom Maszerowski <tcm@moscom.com>.
-
- Bugs
-
- As I'm not very familiar with awk, I couldn't do much testing. Although
- I don't make any commitment to issue bug fixes, feel free to submit any
- problems you find with this version to me.
-
- Matthias Neeracher
- Hohenklingenstrasse 19
- CH-8049 Zürich
- Switzerland
-
- INTERNET: neeri@iis.ethz.ch
-